package com.wyp168.renrenfilm.core.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.wyp168.renrenfilm.core.entity.FilmEntity;
import com.wyp168.renrenfilm.core.vo.resp.FilmCountVO;
import com.wyp168.renrenfilm.core.vo.resp.FilmCountVO1;

import java.util.List;
import java.util.Map;

/**
 * 电影表
 *
 * @author wyp168
 * @email 2721255249@qq.com
 * @date 2022-11-16 18:36:43
 */
public interface FilmService extends IService<FilmEntity> {

    PageInfo<FilmEntity> queryPage(Map<String, Object> params);

    /**
     * 查询统计数据接口
     * @return
     */
    List<FilmCountVO> countData();

    List<FilmCountVO1> countData1();

    /**
     * 根据id，获取电影资源的所有信息，并且累加电影资源的热点值
     * @param id
     * @return
     */
    FilmEntity getByIdAndAddHotPoint(Long id);

    /**
     * 推荐电影列表
     *
     * @param params
     * @return
     */
    Page<FilmEntity> recommonFilm(Map<String, Object> params);
}

